<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>target属性</title>
    <style>
        a{
            color: black;
        }
    </style>
</head>
<body>
    <a href="https://www.baidu.com/" target="_self">百度</a><br>
    <a href="http://book.dangdang.com/" target="_blank">当当</a>
</body>
</html>